package com.dingtao.common.bean;

import com.alibaba.fastjson.annotation.JSONField;
import com.chad.library.adapter.base.entity.MultiItemEntity;

import java.util.List;

import lombok.Data;
import lombok.NoArgsConstructor;

@NoArgsConstructor
@Data
public class Order {
    @JSONField(name = "size")
    private int size;
    @JSONField(name = "total")
    private int total;
    @JSONField(name = "current")
    private int current;
    @JSONField(name = "pages")
    private int pages;
    @JSONField(name = "records")
    private List<RecordsDTO> records;

    public int getSize() {
        return size;
    }

    public void setSize(int size) {
        this.size = size;
    }

    public int getTotal() {
        return total;
    }

    public void setTotal(int total) {
        this.total = total;
    }

    public int getCurrent() {
        return current;
    }

    public void setCurrent(int current) {
        this.current = current;
    }

    public int getPages() {
        return pages;
    }

    public void setPages(int pages) {
        this.pages = pages;
    }

    public List<RecordsDTO> getRecords() {
        return records;
    }

    public void setRecords(List<RecordsDTO> records) {
        this.records = records;
    }

    @NoArgsConstructor
    @Data
    public static class TimeDTO {
        @JSONField(name = "max")
        private int max;
        @JSONField(name = "realDate")
        private String realDate;
        @JSONField(name = "status")
        private int status;
        @JSONField(name = "time")
        private String time;
        @JSONField(name = "tips")
        private String tips;
        @JSONField(name = "week")
        private String week;

        public int getMax() {
            return max;
        }

        public void setMax(int max) {
            this.max = max;
        }

        public String getRealDate() {
            return realDate;
        }

        public void setRealDate(String realDate) {
            this.realDate = realDate;
        }

        public int getStatus() {
            return status;
        }

        public void setStatus(int status) {
            this.status = status;
        }

        public String getTime() {
            return time;
        }

        public void setTime(String time) {
            this.time = time;
        }

        public String getTips() {
            return tips;
        }

        public void setTips(String tips) {
            this.tips = tips;
        }

        public String getWeek() {
            return week;
        }

        public void setWeek(String week) {
            this.week = week;
        }
    }

    @NoArgsConstructor
    @Data
    public static class RecordsDTO {
        @JSONField(name = "area")
        private String area;
        @JSONField(name = "distance")
        private String distance;
        @JSONField(name = "gender")
        private String gender;
        @JSONField(name = "imageUrl")
        private String imageUrl;
        @JSONField(name = "imgUrl")
        private String imgUrl;
        @JSONField(name = "imgs")
        private List<String> imgs;
        @JSONField(name = "mid")
        private String mid;
        @JSONField(name = "nickName")
        private String nickName;
        @JSONField(name = "otherDesc")
        private String otherDesc;
        @JSONField(name = "content")
        private String content;
        @JSONField(name = "price")
        private String price;
        @JSONField(name = "publishOrderId")
        private String publishOrderId;
        @JSONField(name = "serviceLevel")
        private String serviceLevel;
        @JSONField(name = "showColor")
        private String showColor;
        @JSONField(name = "time")
        private TimeDTO time;
        @JSONField(name = "unit")
        private String unit;
        @JSONField(name = "category")
        private String category;
        @JSONField(name = "date")
        private String date;
        @JSONField(name = "online")
        private String online;
        @JSONField(name = "orderId")
        private String orderId;
        @JSONField(name = "collect")
        private boolean collect;
        @JSONField(name = "collectButton")
        private boolean collectButton;
        @JSONField(name = "member")
        private MemberDTO member;
        @JSONField(name = "lastVisitTime")
        private List<Integer> lastVisitTime;
        @JSONField(name = "vip")
        private boolean vip;
        @JSONField(name = "realNameAuth")
        private boolean realNameAuth;
        @JSONField(name = "idBoolean")
        private boolean idBoolean;

        public boolean isIdBoolean() {
            return idBoolean;
        }

        public void setIdBoolean(boolean idBoolean) {
            this.idBoolean = idBoolean;
        }

        public String getArea() {
            return area;
        }

        public void setArea(String area) {
            this.area = area;
        }

        public String getDistance() {
            return distance;
        }

        public void setDistance(String distance) {
            this.distance = distance;
        }

        public String getGender() {
            return gender;
        }

        public void setGender(String gender) {
            this.gender = gender;
        }

        public String getImageUrl() {
            return imageUrl;
        }

        public void setImageUrl(String imageUrl) {
            this.imageUrl = imageUrl;
        }

        public String getImgUrl() {
            return imgUrl;
        }

        public void setImgUrl(String imgUrl) {
            this.imgUrl = imgUrl;
        }

        public List<String> getImgs() {
            return imgs;
        }

        public void setImgs(List<String> imgs) {
            this.imgs = imgs;
        }

        public String getMid() {
            return mid;
        }

        public void setMid(String mid) {
            this.mid = mid;
        }

        public String getNickName() {
            return nickName;
        }

        public void setNickName(String nickName) {
            this.nickName = nickName;
        }

        public String getOtherDesc() {
            return otherDesc;
        }

        public void setOtherDesc(String otherDesc) {
            this.otherDesc = otherDesc;
        }

        public String getContent() {
            return content;
        }

        public void setContent(String content) {
            this.content = content;
        }

        public String getPrice() {
            return price;
        }

        public void setPrice(String price) {
            this.price = price;
        }

        public String getPublishOrderId() {
            return publishOrderId;
        }

        public void setPublishOrderId(String publishOrderId) {
            this.publishOrderId = publishOrderId;
        }

        public String getServiceLevel() {
            return serviceLevel;
        }

        public void setServiceLevel(String serviceLevel) {
            this.serviceLevel = serviceLevel;
        }

        public String getShowColor() {
            return showColor;
        }

        public void setShowColor(String showColor) {
            this.showColor = showColor;
        }

        public TimeDTO getTime() {
            return time;
        }

        public void setTime(TimeDTO time) {
            this.time = time;
        }

        public String getUnit() {
            return unit;
        }

        public void setUnit(String unit) {
            this.unit = unit;
        }

        public String getCategory() {
            return category;
        }

        public void setCategory(String category) {
            this.category = category;
        }

        public String getDate() {
            return date;
        }

        public void setDate(String date) {
            this.date = date;
        }

        public String getOnline() {
            return online;
        }

        public void setOnline(String online) {
            this.online = online;
        }

        public String getOrderId() {
            return orderId;
        }

        public void setOrderId(String orderId) {
            this.orderId = orderId;
        }

        public boolean isCollect() {
            return collect;
        }

        public void setCollect(boolean collect) {
            this.collect = collect;
        }

        public boolean isCollectButton() {
            return collectButton;
        }

        public void setCollectButton(boolean collectButton) {
            this.collectButton = collectButton;
        }

        public MemberDTO getMember() {
            return member;
        }

        public void setMember(MemberDTO member) {
            this.member = member;
        }

        public List<Integer> getLastVisitTime() {
            return lastVisitTime;
        }

        public void setLastVisitTime(List<Integer> lastVisitTime) {
            this.lastVisitTime = lastVisitTime;
        }

        public boolean isVip() {
            return vip;
        }

        public void setVip(boolean vip) {
            this.vip = vip;
        }

        public boolean isRealNameAuth() {
            return realNameAuth;
        }

        public void setRealNameAuth(boolean realNameAuth) {
            this.realNameAuth = realNameAuth;
        }
    }

    @NoArgsConstructor
    @Data
    public static class MemberDTO {
        @JSONField(name = "autoId")
        private int autoId;
        @JSONField(name = "nickName")
        private String nickName;
        @JSONField(name = "imgUrl")
        private String imgUrl;
        @JSONField(name = "area")
        private String area;
        @JSONField(name = "mid")
        private String mid;
        @JSONField(name = "gender")
        private int gender;
        @JSONField(name = "serviceLevel")
        private int serviceLevel;

        public int getAutoId() {
            return autoId;
        }

        public void setAutoId(int autoId) {
            this.autoId = autoId;
        }

        public String getNickName() {
            return nickName;
        }

        public void setNickName(String nickName) {
            this.nickName = nickName;
        }

        public String getImgUrl() {
            return imgUrl;
        }

        public void setImgUrl(String imgUrl) {
            this.imgUrl = imgUrl;
        }

        public String getArea() {
            return area;
        }

        public void setArea(String area) {
            this.area = area;
        }

        public String getMid() {
            return mid;
        }

        public void setMid(String mid) {
            this.mid = mid;
        }

        public int getGender() {
            return gender;
        }

        public void setGender(int gender) {
            this.gender = gender;
        }

        public int getServiceLevel() {
            return serviceLevel;
        }

        public void setServiceLevel(int serviceLevel) {
            this.serviceLevel = serviceLevel;
        }
    }
}
